Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

added a function to retrieve the environment type for a barcode #165

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

sjanssen2
Copy link
Collaborator

It is now displayed when a barcode get scanned. See issue #158

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 91.484% when pulling 9d5ffac on sjanssen2:display_barcode_environment into 19fa479 on biocore:master.

@@ -2422,3 +2425,61 @@ def _revert_ready(self, barcodes):
SET results_ready = NULL
WHERE barcode IN %s"""
self._con.execute(sql, [tuple(barcodes)])

def get_barcode_environment_types(self, barcode):
# TODO: write test code once test data have been dumped into DB!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you prefer holding this pr until this is resolved?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on the timing of the DB dump. I don't want to wait for weeks with further development.

@@ -358,7 +358,7 @@ def test_get_barcode_environment_types(self):

# animal barcodes
barcode = '000002012'
exp = [u'Animal(Dog)']
exp = [u'Human']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the host for this sample changed...?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants